<?php
require('include/init.php');
$act = $_REQUEST['act'];
if($act == 'add_message') { 
	$c_name = $_POST['c_name'];
	$c_email = $_POST['c_email'];
	$c_phone = $_POST['c_phone'];
	$c_mobile = $_POST['c_mobile'];
	$c_content = $_POST['c_content'];
	$GLOBALS['db']->query("insert into kyz_customer_message(c_name,c_email,c_phone,c_mobile,c_content,create_time) values('$c_name','$c_email','$c_phone','$c_mobile','$c_content',$time)");
	echo 1; exit();
}
$smarty->display('customer_message.html');
?>